package datastructure;

/**
 * A class which represents a user in the system.
 * @author ic08jh7
 */
public class User {
	String ssn, fullname, phoneNbr, authority, division, hash;
/**
 * Creates a user in with specific information.
 * @param ssn
 * 			the SSN of the user.
 * @param fullname
 * 			the full name of the user.
 * @param phoneNbr
 * 			the phone number of the user.
 * @param authority
 * 			the authority of the user. Possible values are Patient, Nurse, Doctor and Government.
 * @param division
 * 			the division associated with the user.
 * @param hash
 * 			the hash value which belongs to the user.
 */
	public User(String ssn, String fullname, String phoneNbr, String authority,
			String division, String hash) {
		this.ssn = ssn;
		this.fullname = fullname;
		this.phoneNbr = phoneNbr;
		this.authority = authority;
		this.division = division;
		this.hash = hash;
	}
/**
 * Returns the SSN of the user.
 * @return
 * 			a string with the ssn.
 */
	public String getSSN() {
		return ssn;
	}
/**
 * Returns the full name of the user.
 * @return
 * 			a string with the full name.
 */
	public String getFullname() {
		return fullname;
	}
/**
 * Returns the phone number of the user.
 * @return
 * 			a string with the phone number.
 */
	public String getPhoneNbr() {
		return phoneNbr;
	}
/**
 * Returns the authority of the user.
 * @return
 * 			a string with the authority.
 */
	public String getAuthority() {
		return authority;
	}
/**
 * Returns the division of the user.
 * @return
 * 			a string with the division.
 */
	public String getDivision() {
		return division;
	}
/**
 * Returns the hash of the user.
 * @return
 * 			a string with the hash.
 */
	public String getHash() {
		return hash;
	}
}
